<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@ include file="/public/pathvariable.jsp" %>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache"> 
		<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> 
		<meta http-equiv="expires" content="0">
		<title>微博号配置</title>
		<link rel="stylesheet" href="<%=basePath %>css/style.css">
		<link rel="stylesheet" href="<%=basePath %>css/msg.css">
		<link rel="stylesheet" href="<%=basePath %>css/ui_base.css">
		<link rel="stylesheet" href="<%=basePath %>css/f_style.css">
		<style>
			.strWidth{width:90px !important;}
			.inpWidth{width:200px !important;}
			.unitWidth{width:350px !important;}
			.btnWidth{width:100px !important;}
			.tc{text-align: center !important;}
			label{display:block;color:red;margin:5px 60px;}
			form{position:relative;width:90%;margin:0 auto;}
		</style>
		<script>
			function jsCk(t) {
				if(!/^[1-9][0-9]*$/g.test(t.value)) {
					t.value = "";
					return false;
				}
			}
		</script>
	</head>

	<body ng-app="listApp">
		<!--抬头bar-->
		<jsp:include page="/public/header.jsp" />
		<div class="main w clearfix">
			<!--主窗口-->
			<div class="class_rg" ng-controller="tableCtrl" style="width:1200px">
				<!--内容区-->
				<div class="path_">
					<a href="<%=basePath %>index.jsp?parId=0">首页</a> > <a href="<%=basePath %>resource/index.jsp?parId=4">资源调配</a> > <a href="<%=basePath %>resource/weiboConfig.jsp?parId=404">微博号配置</a> 
				</div>

				<div class="Top_cag">
					<div class="t_bleft fl" style="width:750px;">
						<div class="fl mbine unitWidth">
							<strong class="th strWidth">微博用户ID </strong>
							<input type="text" class="ui_text inpWidth" ng-model="vm.microuser_bloggerId">
						</div>
						<div class="fl mbine unitWidth">
							<strong class="th strWidth">微博用户名 </strong>
							<input type="text" class="ui_text inpWidth" ng-model="vm.microuser_blogger">
							<!-- <input type="text" class="ui_text inpWidth" ng-model="vm.microuser_blogger"> -->
						</div>
						
						<div class="divline v5"></div>
						<div class="fl mbine unitWidth">
							<strong class="th strWidth">博主URL地址 </strong>
							<input type="text" class="ui_text inpWidth" ng-model="vm.microuser_bloggerUrl">
						</div>
					</div>
					<div class="t_bright fr" style="padding:10px 0 0 0;width:400px;">
						<a href="javascript:void(0);" class="ui_btn yellow" ng-click="getAjax()" id="Msearch">查询</a>
						<a href="javascript:void(0);" data-url="weiboAdd.jsp?parId={{addparid}}" class="ui_btn yellow openSrc">新增</a>
						<a href="javascript:void(0);" ng-click="domAjax('innerExc')" class="ui_btn green btnWidth">导入模版下载</a>
						<div class="divline v5"></div>
						<a href="javascript:void(0);" class="ui_btn green editExaDataBtn">导入</a>
						<a href="javascript:void(0);" ng-click="domAjax('outExc')" class="ui_btn green ">导出</a>
					</div>
				</div>
						
				<div class="msg_class_table">
					<div class="title">微博号信息列表</div>
					<table width="100%" border="0" cellspacing="1" cellpadding="0" class="dtab">
						<tr class="th">
							<th scope="col" width="50" class="tc">
								<span class="ui_checkbox" id="zcont"></span>
							</th>
							<!-- <th scope="col" width="100" >序号</th> -->
							<th scope="col" width="200" class="tc">微博用户ID</th>
							<th scope="col" width="230" class="tc">微博用户名</th>
							<th scope="col" width="500" class="tc">博主URL地址</th>
							<th scope="col" class="tc">操作</th>
						</tr>
						<div id="waiting" ng-show='dLoading'>  
						    <img src="<%=basePath %>js/layer/skin/default/xubox_loading0.gif"> 
						</div>
						<tr class="td" ng-repeat="key in datas.returnData">
							<td class="tc"><span class="ui_checkbox" data-id="{{key.microuser_id}}"></span></td>
							<!-- <td><span ng-bind="$index+1"></span></td> -->
							<td class="tc">
								<span title="{{key.microuser_bloggerId}}" ng-bind="key.microuser_bloggerId" style="width:197px;overflow:hidden; white-space:nowrap;text-overflow:ellipsis;display:block;"></span>
							</td>
							<td class="tc">
								<span title="{{key.microuser_blogger}}" ng-bind="key.microuser_blogger" style="width:227px;overflow:hidden; white-space:nowrap;text-overflow:ellipsis;display:block;"></span>
							</td>
							<td class="tc">
								<span title="{{key.microuser_bloggerUrl}}" ng-bind="key.microuser_bloggerUrl" style="width:497px;overflow:hidden; white-space:nowrap;text-overflow:ellipsis;display:block;"></span>
							</td>
							<td class="tc">
								<a href="javascript:void(0)" data-url="weiboEdit.jsp?microuser_id={{key.microuser_id}}" class="green openSrc" id="update_check">修改</a>&nbsp;&nbsp;&nbsp;
								<a href="javascript:void(0)" ng-click="domAjax('del',key.microuser_id,key.microuser_blogger)" class="green" id="delBtn">删除</a>
							</td>
						</tr>
						<tr class="pages">
							<td colspan="10">
	                        	<div class="ui_page">
	                            	<span class="ic fl pr20">共 <b ng-bind="datas.totalRecords"></b> 条记录</span>
	                                <span class="sw fl pr20" id="jssum">显示 <a ng-class="$index==0?'cur':''" ng-repeat="key in [10,20,50,100]" ng-bind="key" pagen> </a></span>
	                                <span class="gopg fr">跳转到<input type="button" class="btn" value="go" ng-click="setAjax({'pageindex':keyInt})"><input type="text" min="1" class="txt" ng-model="keyInt" onkeyup="jsCk(this)"></span>
	                                <div class="pg fr" id="jsgo">
	                                	<a href="javascript:void(0)" data-href="{{prevIndex}}" class="str" pageg ng-show="vm.pageIndex<2?false:true"><</a>
	                                    <a ng-class="key==vm.pageIndex?'cur':''" data-href="{{key}}" ng-repeat="key in pages" ng-bind="key" pageg> </a>
	                                    <a href="javascript:void(0)" data-href="{{nextIndex}}" class="end" pageg ng-show="vm.pageIndex>pages_e-1?false:true">></a>
	                                </div>
	                            </div>
	                        </td>
	                    </tr>
					</table>
				</div>
				<!--内容区-->
			</div>
		</div>

		<!--上传excel插件-->
		<script src="<%=basePath %>js/jquery.min.1.8.2.js"></script>
		<script src="<%=basePath %>js/jquery.form.js"></script>  
	    <script src="<%=basePath %>js/bootstrap/js/jquery.validate-1.7.js"></script>  
	    <script src="<%=basePath %>js/bootstrap/js/bootstrap.min.js"></script>  
	    <script src="<%=basePath %>js/bootstrap/js/fileinput.js"></script> 

		<script src="<%=basePath %>js/jquery.easing.1.3.js"></script>
		<script src="<%=basePath %>js/jquery.mousewheel.js"></script>
		<script src="<%=basePath %>js/layer/layer.min.js"></script>
		<script src="<%=basePath %>js/angular.min.1.2.5.js"></script>
		<script src="<%=basePath %>js/laydate/laydate.js"></script>
		<script src="<%=basePath %>js/config.js"></script>
		<script src="<%=basePath %>js/userSession.js"></script>
		<link rel="stylesheet" href="<%=basePath %>js/Validation/css/validationEngine.jquery.css">
		<script src="<%=basePath %>js/Validation/js/jquery.validationEngine-zh_CN.js" defer="defer"></script>
		<script src="<%=basePath %>js/Validation/js/jquery.validationEngine.js" defer="defer"></script>
		<script src="<%=basePath %>resource/js/angular.weiboConfig.js"></script>
		
		<!--以下是弹出浮层显示的部分-->
		<div class="layerInfoArea f_zuZhiGuanLiLayer f_gongSiLieBiaoLayer" id="editExaDataLayer">
			<i class="closeBtn"></i>
			<div class="f_title" id="editExaData_tile">
				上传文件
			</div>
			 <div class="container">  
	 		     <form id="activityForm" method="post">
					<div class="file">
						<!-- <label for="file">文件：</label> -->
						<div class="userdefined-file">
							<input type="text" name="userdefinedFile" id="userdefinedFile"
								value="未选择任何文件">
							<button type="button">浏览</button>
						</div>
						<input type="file" name="importExcel" id="importExcel">
					</div>
				</form> 
		    </div> 
				
			<div class="submitAreaa submitAreaaGoGo" style="border-top: 0;">
				<a href="javascript:void(0)" class="ui_btn yellow" id="editExaSubmitBtn">确定</a>
				<a href="javascript:void(0)" class="ui_btn cancelLayer">取消</a>
			</div>
			<div class="divline"></div>
		</div>
		<script>
			window.onload = function() {
				document.getElementById("importExcel").onchange = function() {
					document.getElementById("userdefinedFile").value = document.getElementById("importExcel").value;
				}
			};
		</script>
	</body>
</html>